package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2019-11-26
 */
public class Order extends Model<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 支付单Id
     */
    @TableField("pay_id")
    private String payId;
    /**
     * 订单号(游戏方)
     */
    @TableField("reference_order_id")
    private String referenceOrderId;
    /**
     * 外部业务方单号(游戏单号)
     */
    @TableField("order_no")
    private String orderNo;
    /**
     * 商户应用标识
     */
    @TableField("app_id")
    private String appId;
    /**
     * 商户标识
     */
    @TableField("merchant_id")
    private String merchantId;
    /**
     * 附加单号(业务单号)
     */
    @TableField("attach_no")
    private String attachNo;
    /**
     * 用户标识
     */
    @TableField("open_id")
    private String openId;
    /**
     * 商品名称
     */
    @TableField("product_name")
    private String productName;
    /**
     * 支付金额
     */
    @TableField("total_amount")
    private BigDecimal totalAmount;
    /**
     * 支付状态
     */
    private String state;
    /**
     * 支付时间
     */
    @TableField("pay_time")
    private Date payTime;
    /**
     * 支付渠道
     */
    @TableField("pay_channel")
    private String payChannel;
    /**
     * 支付平台
     */
    @TableField("pay_platform")
    private String payPlatform;
    /**
     * 第三方支付单号
     */
    @TableField("pay_no_third")
    private String payNoThird;
    /**
     * 附加数据
     */
    private String attach;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPayId() {
        return payId;
    }

    public void setPayId(String payId) {
        this.payId = payId;
    }

    public String getReferenceOrderId() {
        return referenceOrderId;
    }

    public void setReferenceOrderId(String referenceOrderId) {
        this.referenceOrderId = referenceOrderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getAttachNo() {
        return attachNo;
    }

    public void setAttachNo(String attachNo) {
        this.attachNo = attachNo;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(String payChannel) {
        this.payChannel = payChannel;
    }

    public String getPayPlatform() {
        return payPlatform;
    }

    public void setPayPlatform(String payPlatform) {
        this.payPlatform = payPlatform;
    }

    public String getPayNoThird() {
        return payNoThird;
    }

    public void setPayNoThird(String payNoThird) {
        this.payNoThird = payNoThird;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Order{" +
        ", id=" + id +
        ", payId=" + payId +
        ", referenceOrderId=" + referenceOrderId +
        ", orderNo=" + orderNo +
        ", appId=" + appId +
        ", merchantId=" + merchantId +
        ", attachNo=" + attachNo +
        ", openId=" + openId +
        ", productName=" + productName +
        ", totalAmount=" + totalAmount +
        ", state=" + state +
        ", payTime=" + payTime +
        ", payChannel=" + payChannel +
        ", payPlatform=" + payPlatform +
        ", payNoThird=" + payNoThird +
        ", attach=" + attach +
        ", remark=" + remark +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
